Tengo un problema con mi registro de errores de MySQL, que actualmente consiste principalmente en líneas "mbind: Operación no permitida" (ver más abajo). ¿Por qué sucede y cómo lo soluciono?
Es la parte de "principalmente" lo que me molesta. Como puede ver a continuación, no todas las líneas son "mbind: Operación no permitida". Sospecho que los errores de consulta de MySQL deberían estar en lugar de esa línea, pero por alguna razón no se pueden escribir en el archivo.
MySQL en sí mismo es un contenedor Docker donde los archivos de registro se almacenan a través de:
volumes: - ./mysql/log:/var/log/mysqlLo interesante es que:
¿Algunas ideas? Gracias de antemano.
2019-04-07T12:56:22.478504Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release. 2019-04-07T12:56:22.478533Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. 2019-04-07T12:56:22.478605Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.15) starting as process 1 2019-04-07T12:56:22.480115Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous. 2019-04-07T12:56:22.480122Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead. mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted mbind: Operation not permitted [same line goes forever]PS MySQL se inicia y funciona bien, no hay problema con eso. Es solo este error.log el que sigue molestándome y me impide ver errores reales.
Agregar la opción security_opt en docker-compose.yml ayudó a resolver este problema:
database: image: mysql:latest container_name: mysql_0 ports: - "3306:3306" security_opt: - seccomp:unconfinedAgregue la capacidad CAP_SYS_NICE a su contenedor hasta que el servidor MySQL pueda manejar el error "en silencio".
service: mysql: image: mysql:8.0.15 # ... cap_add: - SYS_NICE # CAP_SYS_NICE Si no tiene docker-compose , puede definir CAP_SYS_NICE a través de
docker run --cap-add=sys_nice -d mysqlReferencias: